package com.imufe.chemicalenterprisedangerwarning.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.imufe.chemicalenterprisedangerwarning.entity.po.EnterprisePO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.imufe.chemicalenterprisedangerwarning.entity.query.EnterpriseQuery;
import com.imufe.chemicalenterprisedangerwarning.entity.query.SafetySupervisionBureauQuery;
import com.imufe.chemicalenterprisedangerwarning.entity.vo.EnterpriseDetailedVO;
import com.imufe.chemicalenterprisedangerwarning.entity.vo.EnterpriseVO;
import com.imufe.chemicalenterprisedangerwarning.entity.vo.SafetySupervisionBureauDetailedVO;
import com.imufe.chemicalenterprisedangerwarning.entity.vo.SafetySupervisionBureauVO;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author BaiBan
 * @since 2022-09-24
 */
public interface EnterpriseService extends IService<EnterprisePO> {

    /**
     * 企业简介
     */
    EnterpriseVO basic(Long id);

    /**
     * 企业的详细信息
     *
     * @param id 企业编号
     */
    EnterpriseDetailedVO detailed(Long id);

    /**
     * 分页查询企业列表
     */
    IPage<EnterpriseVO> page(Long current);

    /**
     * 新增一个企业
     */
    EnterpriseDetailedVO create(EnterpriseQuery query);

    /**
     * 修改企业
     */
    EnterpriseDetailedVO update(EnterpriseQuery query);
}
